# import sys
# import time
#
# from selenium import webdriver
# from selenium.webdriver.chrome.options import Options
#
# chrome_options = Options()
# chrome_options.add_argument('--headless')
# chrome_options.add_argument('--no-sandbox')
# chrome_options.add_argument('--disable-dev-shm-usage')
# d = webdriver.Chrome('/usr/bin/chromedriver',chrome_options=chrome_options)
#
# d.get('file:///'+sys.path[0]+'/createImage/image.html')
#
# print(sys.path[0]) # get system file
# # print(d.title)
# print(d.find_element_by_id("miao").text)

import createClassTimeTableImage

createClassTimeTableImage.createImage('{"now_week": "7","day":"星期一","date":"1697994375.1129553","last_update_time": "1697994375.1129553","data":[{"class_name": "Python程序设计", "teacher_name": "叶李霞", "start": "1", "end": "3", "class_room": "3号楼J504"},{"class_name": "中国近现代史纲要", "teacher_name": "田雪", "start": "4", "end": "5", "class_room": "4号楼501（中）"},{"class_name": "数据结构", "teacher_name": "邢中玉", "start": "9", "end": "11", "class_room": "4号楼404（阶梯）"}]}')